from scrapy.linkextractors import LinkExtractor
from scrapy.http import HtmlResponse

response = HtmlResponse('http://search-changgou-java.itheima.net/search/list?keywords=%E5%8D%8E%E4%B8%BA%E6%89%8B%E8%A1%A8&pageNum=1#glist')

link_list = LinkExtractor(allow=r'pageNum=\d+#glist')
result = link_list.extract_links(response)
print(result)
